/*
Realistic Unit Modification v4.0 Dialog 
v4.0.0.1 [ALPHA]
Concept & Development by Draper & Raps | [VRC]
*/

private ["_helo","_num","_lib","_libhelo"];

_helo = _this select 0;
_num = 0;

/* if the helo is lost, removes from PDA use */
for [{_n = 1},{_n <= (count RUM_AHelAircraft)},{_n = _n + 1}] do {
	_lib = RUM_AHelAircraft select (_n - 1);
	_libhelo = _lib select 0;
	if(_libhelo == _helo)then{_num = (_n - 1)};
};

RUM_AHelAircraft set [_num,"del"];

RUM_AHelAircraft = RUM_AHelAircraft - ["del"];
publicVariable "RUM_AHelAircraft";

if (true) exitwith {};